improve set users group command