changed how class is set up. added config request