expose the completion function