use a better name for the hook and pass the config
unit test for loader hook