more fixes, now seems to work
avoid R_alloc of cargs