now successfully checks registry references