adds a normalize hook
Merge branch 'master' into qunit
adds a normalize hook and test