service config now in class. but is not working though it runs and compiles