flash messaging refactor (ready!)