borrow ToME's log functions
actually use ToME log functions
paranoia guard
add missing comma