moded mkdir to folder + xml error fixes