moved case to commands