random patches

random things that seem to work on my machine, have to run now so will clean later just FYI
This line looks like something has  gone a bit wrong.