added minor permission fixes