convert command payloads to arrays