allow passing a class loader