add support for querying record status