fixed handling of control messages and added room list functionarliy