this should prevent all loading file crash possiblities