changes to get queries and logic in general to work with polymer shadow dom