set basepath