move base model to core app