permissions and mode changes working