optimalizes rss and icals, removes some of unnecessary repeated code