added loggin and different payload outputs