split the main file in two files