trying to catch memleaks