add option to purge old paths from history