moves CommandPayload to api