implement lazy session feature