update path to dir