last bug fixes. Not very pretty code.But a lot of blame.