register dir watch