recognize main file