move amqp setup and env file reading to common