moving services setup to class. a little more work needed