added rooms and changed active xid set to hashmap to imprvoe concurrency