change event and attribute lists to dictionaries