got working script for syncing