updated permission manager