rewrite for simple css parser