cleanup from directory change