adding config loading hook because we can't call helper functions from the config file...