start main command
remove extraneous lines