broke out much of the code in index into the arena module