restores previous set up for application wrapper