debugging the problem I'm having with api mode 2