adding some directory-creating bits to this