fix color bug and print using bytebuf