correcting basepath