modify sync_getsample for pack builds