convert some privilege methods to prototype