reinstall foundation and correct paths