added 1 sec to avoid reloading the same measure over and over
fixed the way "lastUpdate" is computed + more robust error handling