use a valid base directory