cleanup get_cm_url script