sync almost working