init and join rooms