optimize schema class, give install ability to it