handle the case of an existing directory