modify chain dir