fix fromfd as well