added lib dir & added smarty lib