changes for Silverlight and Flash support