reentrant deserialization

use resize instead of this