fixed fd nonsense, addressed #3