delete stream API because it can't ensure portability