trying to figure out read errors.
rework this terrible library..