updated removal of expired sessions