rearranged ObjectIn and ObjectOutput Streams