add support for dot in filename
add xml as output method to prevent parsing issue
add file for pre