move models to core