genius. this should be made an issue - every algorithm should be revisited and made sure it handles this state field properly.