implemented a watchdog to restart loading if server takes too much time to respond, pass as a second parameter to startBuffer