implementing simulation mode, i.e. running without server #24