make confState OM_uint32
better error reporting