updated to chasm code