added missing code needed for dss

- some of the code isn't used anymore