create index and client pgs