fix commands into lines