first step before eating: packet structure + some macros for message types