adds command line and splits files