opts::khn is no longer defined :( (khn -> nkh)