initial stuff for api