implemented temp preparation on startup