working stub trace compilation