added dynamic join group thing