added api checking