validate and revert in PCLI