move scriptable input stream creation to pumpInputStream(...)