modify basepath