cleanup and implementation of the temperature service