made code modular a bit. tried to create some utility functions. changed signature of dispatch. connection string now changed to CONNECTION='producer_type:BLACKHOLE;dest_type:TOPIC;dest_name:some_name' i.e. it has concept of destination in it