adding onError to the list of callbacks and changing the debug message
when a method is received