basedir check