fix allow multiple calls to api in same execution

also removed debug code related to issue