added function to easily construct/ingest an object