fix authentication error
max events issue
update auth method
update to curl