fixing some sync stuff