properly check for demo mode