remove DOM parsing functionality
move funtions to instance methodes