fix code conversion to commands