add core data

add core data support