support xls files too
handle types a bit better