updated to new PolyAuth and updated authorized functions to match