rejigged so conf can be set outside of the constructor