moved config settings into a interface
added contructor to messageq using config class