added a model to store external layers