A: main file