fallback to use the state_name when state can't be found

Closes #12 #14