sync added, needs proper testing