server gets proper fd but not the file