added api controller for api checking