added demo mode option