moved some services config to class