improve how error message is sent to users