add configurable to disable stream reading, configurable timeout