update for waitpid and vm