first version of object inputstream