refactor addBlogs part in order to used in an auto-sync method