improved auto-logger querying