yeah, that code is doing some seriously weird stuff. from looking into the package a little, what is happening is that these functions modify an implicit global state. it's probably not the api I would have designed, but it does look convenient for rapid development.