set service as global var