extended API to allow clear text