adds file generation and xml loading