move sectorupdateevent functions to own file