removed some useless stuff, added a handler for room:join