add some core data work