updated code to publish uptime every 15sec, and accept print requests