add registry support