email changed
a few bugs that valgrind showed fixed