improve id lookup (clojurescript); avoid duplicate behaviours