0.1.9: update error middleware