fix url.resolve() calls