modify stream and daemon kill