added api controller with check method