changes necessary for passing the tests of the xss module