updated for new mediasync api changes