autogen logic for dry run