commit by jaylia ,bugfix for basepath default value