improved error report of command and data type checks