changed runtime classloader to only load expected classes; guarded some profiler codegen