states now support options (resolves #8)