add extra options for xml, json and other purpose