add loader directive