removed heavy leaks :-) todo: solve the still reachable in loss record stuff