add authority controll and add status switches