Add error argument to callback & bugfix regarding API sig param