alpha implementation of add_to_group