repository utility
fix lazy session problem