added support for multiple arguments