prevent startup crashes