finish work on core data stack