add success flag onto file object which is passed down the stream