split lines for readability, jeez
#445 don't fail when no registry is set