remove invalid style elements, keep note of colors
fix permissions