optimize runtime error report