Refactor hooking utility methods
Adjust the way packages are loaded to support jars