some improvements in helper and gui APIs and replacement and restoring
sessions