moved config and payload definition to central .h file