remove cruft
move event codes into JSON file