fix bug where nil could be passed as argument to fmt
add all known units to existing checks