fixes in running command from console