finishes impl of balrog and snippet gen. untested