changed send to sender that returns a writer