stream2file, added getConfig