some changes regarding COM and Variant support