improved code and fixed a bug related to commands that do not exist