made some small fixes to webhook