moved code from rss to utils