raise better errors on fetch url