changed callback names to load and error