added console log for models.js