added plugin for state query model

final name and architecture pending