added function to query chachelab