handle empty deck
ensure md is always re-written when stale