added support for multiple values for and id parameter