added api and admin