XML loading not completed yet, still some bugs in main logic :(