configure for basepath