able to read whole xml. also redefined some classes