fixed comment naming issue and added save extent on logout