when adding dir, add parent dir for context