added authority calculation to router