added support for specifying what formats to use