debugging API mode 2