adding method to retrieve the overall status