basic resolution of dynamic symbols, refactor