fix connection between the different files