ENH: allow for different file formats