change class loader to static methods.