add basic exception tracking implementation