thermal is now mainlooped