make mapper use macros for reading arguments. also check than arguments were provided