support tied syswrite