more care regarding SCM_PACK and SCM_UNPACK