add support for fetch max param

limits the states a fetch subscribes