Refactoring: tzaar + online/offline/gui mode