updated room parsing and started room wrting