local & remote file stream support