removed __DIR__ constant, using $kernel->locateResource instead