convert secex step 2 to use Click lib