add newline, save command to file