adding fd support