finished multi-policy stuff. Everything seems to be superficially working now, needs testing