beat
need separate thread for activating and deactivating fireflies, and adding new groups
more refactor dir