modification of the treatment of the is_loaded flag for models