work on square state
hash stuff