trying to fix crashing issues that are difficult to track down