exception handling. faster reading and writing.