remove unnecessary local variables
stop with monkeypatchig of Rails exception middleware
style fixes