added working torches framework