check for models directory