add better error message
[BUG #8616] add loader template