use error reporing that works for 5.3.26 and 5.5.3