trying to catch errors loading files

but we should probably figure out the length of the file and not try to
load it if it is over a certain length