maddening ^end error, but mostly complete