debugged a few errors; adding events is working again