fixing relative refs