move more stuff to the lua bindings.