throw error when loading causes problems