implemented the handler binding to the exchange and stuff