some progress on a code emitter