add command line and reorganise text