improve RGB support