this may or may not help with those memory issues
cleanups