How to avoid botched investigations