fixed method for checking service availability.