fix target dir creation and symbol table lookup