fleshing out the logging, added argument to allow an onSuccess hook for asserts