rm old header
check leaks