ensure given commands are running one at a time