adding code to check if a registered service should be considered available.