add prebuffering functionality to improve playback