add check for file:// urls