improved errors using underscore and flash