adapted deserialization to input format