xml constructors work in progress