added support for multiple consumers