added method to deserialize payload
get it working