some cmdline options and bugfixes