added test/live switch