important fix that toggle test/production works correctly