add directory method