added session synch & removed bug with keyboard