moves to root
Tries to print errors?
more debug
print errors on pickling
more refactoring..