catch any possible errors in the load input