add change dir to opt