add create reference functions to repo