add torch directory