more debugging

I debugged the code some more.
I'm working on the updatepicks problem at the moment