more work testing commands, looping, waiting, and PID retrieval