fixed runall wrapper, fixed context switching, and made multiprogramming work.