stared pulling a few more functions out of _initElements