added getPreferredLocations
examples