make peers use macros for reading args. also remove some peer compilation warnings