fixing library path in script, making ingest date field optional