added hookInjector class