draw implementation for writefds