main file fix