make pack/unpack prototype methods