klein/smarty libraries