rename patterns folder to pat
registry informs what patterns are loaded and when initial scan is finished