ensure config gets loaded from correct place in hook