manage basedir