trying to come up with a solution to some very odd serial states