adding -whatif support. Resolved #12