// better smarty parsing