move code to kokoropy package