updates to include local query