added api.cc and full.cc