added memory flag to avoid :db.error/not-enough-memory errors