merge with smarty