correctly formatting X/Y API commands