Well that was stupid. Air flow meter and throttle position sensor weren't even plugged back in after putting the rebuilt head on. Condition now, runs even worse than it did but no error 12. Error 21 looks to be a very generic code but I'm leaning toward a bad crank angle sensor rather than a bad power transistor.