better warnings for memory leaks and race conditions