converted from fbcolors script