fixed bugs associated with the path and update when things got unstable. things are stable now