fromstream now works