refactoring the rabbit mq service library. Now planned to use actors