added demo mode