adding closure to properly print argv names during sync calls