add custom errors mode