add a parent plugin class to pass query to plugins