updated to allow FeatureLayer from Dynamic service