better uptime calculation, emails auth