history bugfix

annoying comment no. 2: trying to use Wagn.root instead of Rails.root for future proofing.

(this one is even more useless than the previous.  I'll try to stop now)