updated sync() - should work