add rs_utils.php