added clock sync stuff