optimize sync
optimize session manager
more optimize