move torch from build to mako