Rewrite of the parallel command engine

works but still in progress & to test