move 256-color stuff into a better spot