removed setTimeouts before calls to apiReady event
more concise outputs for events