partial copy of corsi2 functions to corsi