resolve url when building