started added functionality to poll and cache service directories