separated general initialization and rabbitmq-specific part