xray updated for commands