TODO: add parse rules mixin. Fixing component mixin bug