added boundaries and extra char state info