ensure runtime config (TODO: need tests)