create api functions in advance of analysis Steinar