local pattern selectors are working, still busy with refactoring