partial fixes to logging triggers