added support for passing options to multiple elements at once