Added API-AUTH-ERROR condition
Added handling for stringed api calls, fixed bad reference