prevent global leaks