gen level stuff, bug fixes, new algorithms