create the main file