added simple template params support