move base model to lib folder.