initial code gen & builder