more element setup

early parent/child stuff, a global element index