modified to be able to use swift-recon command