trying to fix double call of parse_events