change uptime module to take a callback as argument