updated core data manager