cleanups, also debug cached error message