make global constructors work