more work on extracting events from behavioral data