handle empty command line
reorganize