multipoly and a bunch of fixes