added handling for JOIN and PART.