fix all but one of the functional tests

newproc.uqb still not working, but all other functional tests are
working correctly. almost time to merge to master!