spec 2w and query api