add error_messages for errors