add support for allow_formats