build torch