add timeout to prevent long hang on unrecognized url