start adding logger to query