using namespace when checking for profiler, checking for defined constants on autoload script