add run ps wait, a lot of change, I like it