fix env check on min and max nodes
adding a pretend flag