convert secex step 6 to use Click lib