generalized rcfile loading