stable version

finally merged correctly. slowing down problems are gone, memory leaks
are contained