support multiple ids/classes, add proper selector support