added kif compile func