add default opts to setState