add some basic convenience methods to State class