refactor template handling, implement rss polling