fixed identify_dir call