add query api
release lock asap