added uptime check to oop style