provide more precise error info for most commands when type mismatch