serialization, nio