added a callback on assert