support recovery pre-commands