server: add output format and delimiter option