windows support for new constructor