singleton detecting service improved