added ability to add foreign objects