upgrading torch/generic files to the last version