use class loader to avoid annoying file issues