added support for new rScript loading method