move torch overlay to device config