change base directory