removed unneccessary check for xml directory