fixed adding of comments for different resources