returning payload object and logging it