convert to commands