moved sync soln to a separate file