many fixes!
memory leaks gone