adds check if data couldn't be loaded