Revert "fix reloading project files in cd"

This reverts commit 9e02789b323ee7a774ccff215ad2f246d6eef620.
Revert "cleaning cd function"

This reverts commit 835116c1ab53ae8825297968787436d6ca67dbdc.