added support for multiple parameters