working registerService