added devMode toggle