separated processing from html in ripit