change dir handling