changing how hxManager.prototype is initialized