add flux constructors, xhr