improve ftdetect. #2