ensure CustomElements scope exists
add missing dependencies