chmod +x rstubs and stub