add setvar and MAKECLOSXP