added support for command line args