added fallback for bad urls