added sync for sessions