lots of cmdline functionality