o handle 'origin error'
o exit with undef in _apifee instead of dereferencing an undefined var
add retrycount, backoff .3s each retry, move error checking into one function