fixed some old references to rightapi