changed directory change behaviour and time display method