first draft of large data functions package.