tdcevents
general fixes