update base directory