relativize and resolve