API for internal access to core-data