add stale functionality