added rgb endpoint