added pattern discovery and resource selector data. added log messages.