handle function payloads
0.2.0