added timeout for fetch