stream API added to WritableCheckInvHandler(not completed)