make the state method a bit smarter
version bump: v0.1.3