extract sync method
refactor
working contacts api