generalizing the way spawn is run, and adding the remaining info commands