adjust topdir setting