adapted run commands to the use of cerr