convert secex step 3 to use Click lib