create basic api
refactor api