added switch value to use open graph