changing stream locaion to tmp