removing switch due to strange ionic build problems