refactoring: use getConfig without unsafePerformIO