refactoring getIframes and vendors