reentrant deserialization

use resize