added an argument to display only the execution plan
fixed the case of 2 flattened pds where one of them has an environment. fixes #298