make emit_prefix and emit_suffix static