refactoring
preliminary support for loading dylibs