added markClean method to session