created api, updated models