XML stuff + stuff i forgot to commt