added DONE state to deserializer