added coredata, date support