updates to scheme and log entry queries