cosmo.cpp exception update