add decoded procs to getstate exceptions; move getstate and repr up