refactor dir module => statefule dir
encapsulate rails session
catch and print error; compare
move comparison to class
root==backslash for comparison; ignore script tags for comparison