make sure setup before querying