@ahmadia  is there any smarter way to do this? I bet there is, is just that I couldn't find it.  The idea is to maintain backward compatibility I need to make sure that if file_format is given then I can handle it correctly.