convert secex step 8 to use Click lib