adding demoMode and forcePlugin flags