coded a variant of threat_recon_request in ruby