updated crash/log tools for more automatic recovery