default fd is -1