refactor dump menu