latest code and improvements to commands in controls