make urls protocol agnostic