adds check if data couldn't be loaded

fixes issue #2