added an optional message argument to check