made the models externalized