big job on rewriting check and docs