added coredata support to app