commit better error handling for reads