make torches optional