code updated with march cohort, added some defs. BROKEN.