added new rd scripts to several functions