modify code, for kissy kmc generation