add completion function and hash of clusters