defschema with name and s/if

@aria42 @w01fe