adding support for cmdline args