first run of patterns controller (up to global and local pattern JSON info)