edit permissions. todo:test if permissions can be cut to a minimum.