working on client-side errors and timeouts