refactoring minor
class loader customizable
compile against java 1.7