adding try to api access