wip - figuring out states