add auto session restore function and remove auto session plugins