set a basepath var to use