add run wait and process exists