adding real2rgb support