core functions of rbcurse