partial 0.9.4, support for file streams and script