setting basepath