adding health-status api and updating the code to new nan