settle cmdline args and more cosmetics