fix inconsistency with flags, decont algor and plotting