refactor synch service