#46 - fix stream-related issues in subprocess