sys write and FD finder code
round 2
write changes