added working copy of the main file