new code generation,not yet working right
some simplification
add the erlog_make_server function