initial code setup for api
merged