implemented some basic rebuffering system