moved config to class