Fork: add options to emit_xxx methods