changes after Elz's review: setflash instead of flash and ts()