fixes 2 privilege issues