use canonical order of keys; makes skimming easier
make the mail safety threshold configurable