try to avoid R_CStackDir