implemented group joining
wrote group thread stuff