autosubscribe and ensureindex