code optimization.
added Sessions.
added CHROOT_PATH in Preferences.