added support for arguments to script