modify dir construct.