finish implementing reloc