working diagnostics, still need to find a better solution to confirm node.js is running, current implementation will not work during real usage if battery is below 100