change the way to check services