change dir and so on.