add support for state param