change success/fail in options to success/error