make config loading work properly