converted getUptime to reEX