added suport for custom classloaders