better event error handling, fixed migration, etc