changed de/serializer to buffered streams