better fix for uno's code to allow memory based transfer of data without creating file