add spec and schema