code refactoring
added gevent sender and receiver