add support for format option file