made KnParam be subclass of dict