fixed fileno crap