added support for custom sync interval