fileIO and error conveniences