added runtime config switch