input stream should be manually close every time