added support for cli arguments