fix assembler recursion
minor debug remove
fix and use object writer in test