fixing cmdline interfacing