make basepath configureable