fix deprecation and add color.