stuffed some memory leaks, nothing special