refactoring health check to reduce complexity

travis test failing due to high ABV… hope this fixes