initial setup for api