split off generic configuration code. added more pixelmask comparison tooling. smr functional, except for storage.