update query to work with new share interface