support for default constructors #796