avoid stackoverflow with phoenix/dwarfr