optimize install schema